package com.xjj.service.feign;

import com.xjj.entity.ResponseEntity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description 调用Manage微服务
 * @Author zhangjin
 * @Date 2022/10/25 9:43
 */
@FeignClient("manage")
@RequestMapping("/manage/admin/klass")
public interface KlassFeignClient {
    @GetMapping("/getKlassByName/{classname}")
    @ApiOperation("根据班级名称查询班级是否存在")
    ResponseEntity isExist(@PathVariable("classname") String classname);

    @GetMapping("/getKlassById/{id}")
    @ApiOperation(value = "根据班级id查询班级信息")
    ResponseEntity getKlassById(@PathVariable("id") int id);

    @ApiOperation(value = "查找所有班级所有信息")
    @GetMapping("/findAllKlass")
    ResponseEntity findAllKlass();
}
